package com.ruoyi.school.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 在职荣誉
 * @TableName pac_job_honors
 */
@TableName(value ="pac_job_honors")
@Data
public class PacJobHonors implements Serializable {
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 学生ID（建议使用固定长度UUID）
     */
    private Long stuId;

    /**
     * 学生姓名
     */
    private String stuName;

    /**
     * 学好
     */
    private String stuNum;

    /**
     * 荣誉标题
     */
    private String honorTitle;

    /**
     * 荣誉详细描述
     */
    private String honorContent;

    /**
     * 荣誉证书文件路径
     */
    private String honorFile;

    /**
     * 文件类型
     */
    private String honorFileType;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新人
     */
    private String updateBy;

    /**
     * 更新时间
     */
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PacJobHonors other = (PacJobHonors) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getStuId() == null ? other.getStuId() == null : this.getStuId().equals(other.getStuId()))
            && (this.getStuName() == null ? other.getStuName() == null : this.getStuName().equals(other.getStuName()))
            && (this.getStuNum() == null ? other.getStuNum() == null : this.getStuNum().equals(other.getStuNum()))
            && (this.getHonorTitle() == null ? other.getHonorTitle() == null : this.getHonorTitle().equals(other.getHonorTitle()))
            && (this.getHonorContent() == null ? other.getHonorContent() == null : this.getHonorContent().equals(other.getHonorContent()))
            && (this.getHonorFile() == null ? other.getHonorFile() == null : this.getHonorFile().equals(other.getHonorFile()))
            && (this.getHonorFileType() == null ? other.getHonorFileType() == null : this.getHonorFileType().equals(other.getHonorFileType()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getStuId() == null) ? 0 : getStuId().hashCode());
        result = prime * result + ((getStuName() == null) ? 0 : getStuName().hashCode());
        result = prime * result + ((getStuNum() == null) ? 0 : getStuNum().hashCode());
        result = prime * result + ((getHonorTitle() == null) ? 0 : getHonorTitle().hashCode());
        result = prime * result + ((getHonorContent() == null) ? 0 : getHonorContent().hashCode());
        result = prime * result + ((getHonorFile() == null) ? 0 : getHonorFile().hashCode());
        result = prime * result + ((getHonorFileType() == null) ? 0 : getHonorFileType().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", stuId=").append(stuId);
        sb.append(", stuName=").append(stuName);
        sb.append(", stuNum=").append(stuNum);
        sb.append(", honorTitle=").append(honorTitle);
        sb.append(", honorContent=").append(honorContent);
        sb.append(", honorFile=").append(honorFile);
        sb.append(", honorFileType=").append(honorFileType);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}